import React from 'react';
import { Tag } from 'antd';

interface PropsType{
  state:number;
}
const BkState: React.FC<PropsType> = ({state}) => {
  let colorArr = ["volcano", "green", "geekblue"]
  const arr = ["已取消",  "预约中", "已成交"]
  
  return (
    <Tag color={colorArr[state]}>{arr[state]}</Tag>
  )
}

export default BkState